//2：将一个正整数分解质因数。例如：输入90,打印出90=2*3*3*5。 ok
package ZUOYE0421;

import java.util.Scanner;

public class 作业二 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入一个数：");
		int num = in.nextInt();
		System.out.print(num + "=");
		for (int a = 1;;) {
			a++;
			if (num % a != 0)
				continue;
			num = num / a;
			if (num == 1) {
				System.out.print(a + "。");
				break;
			}
			System.out.print(a + "*");
			a = 1;

		}

	}
}